
export const SET_NAME = 'SET_NAME';

export const setName = (name) => {
    return {
        type: SET_NAME,
        name,
    };
};


export const ADD_POST = 'ADD_POST';

export const addPost = (post) => {
    return {
        type: ADD_POST,
        post,
    }
};